package com.example.demo.service.impl;

import com.example.demo.common.result.Result;
import com.example.demo.mapper.CommonMapper;
import com.example.demo.model.DTO.NameTypeDTO;
import com.example.demo.service.CommonService;
import com.example.demo.service.requestRvo.IDRvo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class CommonImpl implements CommonService {

    @Autowired
    CommonMapper commonMapper;
    @Override
    public Result getIndicator(IDRvo id){
        List<NameTypeDTO> list = commonMapper.getIndicatorById(id);
        return Result.ok().data("data",list);
    }
}
